﻿using System;
using System.Linq;
using System.Text;
using SqlSugar;

namespace DongFangGuoKai.WMSPlatform.Domain.Models
{
    ///<summary>
    ///定时任务
    ///</summary>
    [SugarTable("DBO.t_ScheduledTask")]
    public partial class t_ScheduledTask
    {
        public t_ScheduledTask()
        {


        }
        /// <summary>
        /// Desc:主键
        /// Default:
        /// Nullable:False
        /// </summary>           
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }

        /// <summary>
        /// Desc:名称
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? Title { get; set; }

        /// <summary>
        /// Desc:记录类型
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? RecordType { get; set; }

        /// <summary>
        /// Desc:记录Id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? RecordId { get; set; }

        /// <summary>
        /// Desc:关联Id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? RefId { get; set; }

        /// <summary>
        /// Desc:命令内容
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? Data { get; set; }

        /// <summary>
        /// Desc:状态：-1-执行失败;0-待执行；1-执行中；2-已完成；
        /// Default:0
        /// Nullable:True
        /// </summary>           
        public int? Status { get; set; }

        /// <summary>
        /// Desc:完成时间
        /// Default:
        /// Nullable:True
        /// </summary>           
        public DateTime? FinishedDate { get; set; }

        /// <summary>
        /// Desc:描述
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? Msg { get; set; }

        /// <summary>
        /// Desc:创建时间
        /// Default:DateTime.Now
        /// Nullable:True
        /// </summary>           
        public DateTime? CreateDate { get; set; }

        /// <summary>
        /// Desc:创建人Id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? CreateUserId { get; set; }

        /// <summary>
        /// Desc:创建人
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? CreateUserName { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? WarehouseId { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? WarehouseCode { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? WarehouseName { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? Priority { get; set; }

    }
}
